<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/2/8
 * Time: 17:09
 */

namespace Home\Controller;


class HelpController extends HomeController
{
    public function index()
    {
        $cid=I("get.cid",54,"int");
        $document=D("Document");
        $list=$document->lists($cid);
        $document_article=M("document_article");
        foreach($list as $key=>$val){
            $list[$key]['content']=$document_article->where("`id`=".$val['id'])->getField("content");
        }

        //print_r($list);exit;
        //print_r($list);exit;
        $this->assign("list",$list);


        $this->assign("meta_title","企业文化");
        $this->display();

    }

}